import { request } from "../utils/request";
/**
 * 运费中心
 */
export function getCustCarriageByCustId(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getCustCarriageByCustId','POST',data))
  })
}
/**
 * 根据运费Id查询运费信息
 */
export function getCustCarriageById(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getCustCarriageById','POST',data))
  })
}
/**
 * 运费提现申请
 */
export function freightWithdrawalApply(data) {
  return new Promise(res => {
    res(request('/custCarriageController/freightWithdrawalApply','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 运费兑付明细
 */
export function getWithdrawalFlowList(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getWithdrawalFlowList','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 运费收入明细
 */
export function getCustCarriageFlowList(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getCustCarriageFlowList','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 运费提现明细
 */
export function getCarriageWithdrawalFlowList(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getCarriageWithdrawalFlowList','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 配送中心运费
 */
export function getFreightCenter(data) {
  return new Promise(res => {
    res(request('/custCarriageController/getFreightCenter','POST',data))
  })
}






